package com.minelx.woods.server.entity;

import com.minelx.woods.server.dao.UserDTO;
import com.minelx.woods.server.dao.UserRepository;

public class User {
	private final UserRepository userRepository;

	private final String name;

	public User(UserRepository userRepository, String name) {
		this.userRepository = userRepository;
		this.name = name;
	}

	public UserDTO values() {
		return userRepository.find(name);
	}
}
